import React, { useState } from 'react';


const WithUser = WrapperComponent => {
    const user = 'wmg';

    return props => <WrapperComponent user={user} {...props}></WrapperComponent>
};

function AppHigher(props) {
    return (
        <div className="AppHigher">
            {props.user}
        </div>
    );
}


export default WithUser(AppHigher);